<?php !defined('IN_DSW') && exit('大神你要飞呀');?>
{Tinwin include:top}
{Tinwin include:left}
<div class="main">
	<div class="position">
		<ul>
			<li><a href="{Tinwin c:ADMIN_URL}index">后台首页</a></li>
            <li>/</li>
            <li><a href="{Tinwin c:MyAppUrl}index">友链内链模块</a></li>
            <li>/</li>
			<li><a href="{Tinwin c:MyAppUrl}friendlink">友情链接管理</a></li>
			<li>/</li>
			<li>{Tinwin $FormTitle}</li>
		</ul>
    </div>
    <div class="mainform">
        {Tinwin include:nav}
    </div>    
	<div class="maininfo">
        <form action="{Tinwin $FormAction}" method="post" class="container-fluid">
            <h1 class="text-center">{Tinwin $FormTitle}</h1>
            <input type="hidden" name="input_token" value="{Tinwin $input_token}">
            <div class="form-group row" style="padding-top:20px;">
                <label for="inrow" class="col-sm-3 control-label text-right">位置排序</label>
                <div class="col-sm-6">
                    <input type="number" class="form-control" name="dsw[inrow]" maxlength="5" placeholder="只允许输入数字" value="{Tinwin $ListOne['inrow']}" min="0" max="99999" step="1" >
                </div>
            </div>
            <div class="form-group row">
                <label for="link_title" class="col-sm-3 control-label text-right">链接标题</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" name="dsw[link_title]" placeholder="请输入链接标题" required value="{Tinwin $ListOne['link_title']}" >
                </div>
            </div>
            <div class="form-group row">
                <label for="link_url" class="col-sm-3 control-label text-right">链接地址</label>
                <div class="col-sm-6">
                    <input type="text" class="form-control" name="dsw[link_url]" placeholder="请输入链接地址，以HTTP开头" required value="{Tinwin $ListOne['link_url']}" >
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-3 control-label text-right">打开方式</label>
                <div class="col-sm-6">
                    <select name="dsw[link_target]" class="form-control">
                        {Tinwin if $ListOne['link_target']=='_self'}
                            <option selected="selected" value ="_self" >当前窗口打开链接</option>
                            <option value ="_blank" >新窗口打开链接</option>
                        {Tinwin else}
                            <option value ="_self" >当前窗口打开链接</option>
                            <option selected="selected" value ="_blank" >新窗口打开链接</option>
                        {Tinwin endif}
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label for="isview" class="col-sm-3 control-label text-right">是否显示</label>
                <div class="col-sm-6">
                    <select name="dsw[isview]" class="form-control">
                        {Tinwin if $ListOne['isview']==1}
                            <option selected="selected" value ="1" >显示</option>
                            <option value ="0" >不显示</option>
                        {Tinwin else}
                            <option value ="1" >显示</option>
                            <option selected="selected" value ="0" >不显示</option>
                        {Tinwin endif}
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label for="psd2" class="col-sm-3 control-label"></label>
                <div class="col-sm-6">
                    <button type="submit" class="btn btn-default">保存</button>
                </div>
            </div>
        </form>
	</div>
</div>
{Tinwin include:footer}